<?php

namespace App\Kuafu\Config\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class ConfigCodeEnum extends BaseCodeEnum
{
    public const ERR_CONFIG_PARAM = 404001;

    public const ERR_CONFIG_DB_ADD     = 504001;
    public const ERR_CONFIG_DB_SET     = 504002;
    public const ERR_CONFIG_DB_DEL     = 504003;
    public const ERR_CONFIG_PARAM_TYPE = 504004;
    public const ERR_CONFIG_ID_NULL    = 504005;

    public const ERR_CONFIG_ADD_REPEAT = 504006;

    public const CODE_TEXT = [
        self::ERR_CONFIG_PARAM      => '参数错误',
        self::ERR_CONFIG_DB_ADD     => '新增失败',
        self::ERR_CONFIG_DB_SET     => '编辑失败',
        self::ERR_CONFIG_DB_DEL     => '删除失败',
        self::ERR_CONFIG_PARAM_TYPE => 'type不能为空',
        self::ERR_CONFIG_ID_NULL    => 'id不存在',
        self::ERR_CONFIG_ADD_REPEAT => '新增配置名称重复',
    ];
}
